package com.dm.shop.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @version 1.0
 * @author: Saiya Wang
 * @desc: TODO
 * @date: 2021/7/21 10:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AuthDTO {
    @NotBlank(message ="用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(min = 6,max = 25,message="密码长度为6-25")
    private String password;

    private String phone;

    private String checkNum;

    private String name;

    private String mail;

    private String sex;
}
